package org.mozhu.mboot.core.config.support;

import lombok.extern.slf4j.Slf4j;
import org.mozhu.mboot.core.config.ApplicationConfiguration;
import org.mozhu.mboot.core.config.ConfigurationListener;

@Slf4j
public class SimpleConfigurationListener implements ConfigurationListener {
    @Override
    public void notifyUpdate(String key) {
        log.info("Configuration of key [{}] changed to [{}]", key, ApplicationConfiguration.get().getProperty(key));
    }
}
